Skip to content

[Fixes #319] Add Vue.extend support #322

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 28, 2018
Merged

Conversation

michalsnik
Copy link
Member

#319

This PR adds support for detecting Vue.extend as components, also it adds missing information about Vue.mixin in readme.

Unfortunately I think it should be merged once we're ready to release new major version, as it might potentially break some CI builds.

@blake-newman
Copy link
Member

Not sure this is an issue, i have seen in places where export default Vue.extend is used. Will this capture this aswell. I think this is used with TS based projects, may not be so much of an issue now.

@michalsnik
Copy link
Member Author

It's not an issue, should work fine @blake-newman :) We look for CallExpressions so export part is entirely omitted in this check. We only check for export default in .vue and .jsx files to determine it as component.

@michalsnik michalsnik requested a review from chrisvfritz January 6, 2018 23:15
@michalsnik michalsnik self-assigned this Jan 6, 2018
Copy link
Contributor

@chrisvfritz chrisvfritz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good to me in theory. 🙂 I didn't test whether it works and am not expert enough to know whether this is an ideal implementation.

@michalsnik michalsnik merged commit 98dbf8a into master Jan 28, 2018
@michalsnik michalsnik deleted the add-vue-extend-trigger branch January 28, 2018 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants